====================================================================
= Melissa Data COM Address Object Microsoft SQL Server 2000 Sample =
====================================================================

*DISCLAIMER*
================
We do not support 32-bit versions of SQL Server due to memory constraints

IMPORTANT
=========

We also have a version of the SQL Server sample for AddressCheck available in the interfaces folder. 
This uses extended procedures and more robust than the COM version. We recommend you use that instead.

Prerequisite
====================
This sample is intended for use after the installation of the DQT Suite DVD. It requires that 
the Address Object is registered and the Data Files installed. If you did not install the Data Files
to its default directory, you will have to change the Data File Path in the sample code to point it
to the correct directory. The Data Files Directory must contain the following files: mdAddr.dat, 
mdAddr.lic, mdAddr.nat, mdAddr.sfx and mdAddr.str.

SQL Server/Windows Sample Scripts
=================================
The sample scripts were built for versions of SQL Server 2000 and higher.

Demo Mode
=================
The sample will verify or look up Nevada addresses while it is in Demo mode. To unlock Address Object for all
of the United States and Canada (add-on), you will need a valid license string. You must call our Sales Department to 
obtain a valid license string. mdAddr.lic does not contain the license string and should not be opened by the customer.

Sample Notes
=================
The first SQL script (CreateList.SQL) will create a table and insert 105 sample records from Nevada into this newly created table.
This gives the user something to work with without having to modify our code just to see the procedure run.

The second file, AddressObject_COM.SQL, creates a stored procedure that will address check the list created by the first script.

In general, to use the SQL 2000 demo, here's what you need to do:

1. Install the Address Object on the machine running SQL server, not the local workstation. The stored procedure runs on the server,
so the Address Object has to be registered where the stored procedure will run.

2. Start up SQL Query Analzyer and change over to some database.  Northwind is a sample database to have, but you can pick
any database.

3. Open up the file CreateList.SQL and copy the contents to the Query window - Execute the script.

4. Open up the file AddressObject.SQL and copy the contents to the Query window. 

5. Change the path in the line of code listed below to where you installed the data files:

	SET  @DataPath = 'C:\Program Files\Melissa DATA\DQT\Data'	-- Path of Address Object data files

   The Data Files Directory must contain the following files: mdAddr.dat, mdAddr.lic, mdAddr.nat, mdAddr.sfx and mdAddr.str.
	
5. Run the stored procedure with the command exec sp_VerifyAddress.

6. Examine the records in the List Table (Select * from List).  When newly created, they had no plus 4's and now most
records will have plus4's.  We do not code all records in the table, as we wanted to demo error codes that could be
returned as well.


SALES AND SUPPORT
=================
For free technical support please call us at 800-MELISSA ext. 4
(800-635-4772 ext. 4) or email us at tech@MelissaData.com.

To purchase Address Object, please contact our sales department at
800-MELISSA ext. 3 (800-800-6245 ext. 3).


COPYRIGHT NOTICE
================
(C) 2011 Melissa Data Corporation. All rights reserved.

Address Object is a trademark and 1-800-800-MAIL is a registered trademark
of Melissa Data Corporation. UNIX is a registered trademark of The Open
Group. Linux is a registered trademark of Linus Torvalds.  Solaris is
a trademark of Sun Microsystems. Windows is a registered trademark of
Microsoft Corporation.

All other brands and products are trademarks of their respective
holder(s).